package com.cai.mvvm.adapter;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.NonNull;

import com.cai.mvvm.databinding.ItemBinding;
import com.mvvm.library.base.BaseAdapter;

public class ItemAdapter extends BaseAdapter<String, ItemBinding> {
    @Override
    protected ItemBinding createBinding(LayoutInflater inflater, @NonNull ViewGroup parent, int viewType) {
        return ItemBinding.inflate(inflater);
    }

    @Override
    protected void bindObject(@NonNull ItemBinding binding, @NonNull String item, int position) {
        binding.setItem(item);

    }

    @Override
    protected void handleItemNull(ItemBinding binding, int position) {

    }
}
